fix out of bound access to mode_strings
authorStefano Stabellini <sstabellini@kernel.org>
Fri, 9 Dec 2016 01:17:04 +0000 (17:17 -0800)
committerStefano Stabellini <sstabellini@kernel.org>
Fri, 9 Dec 2016 19:37:33 +0000 (11:37 -0800)
commit28306bccb73ee14b5732f182d3e86c5d0c4d92c5
tree95ce20fb0f0de74c78792698c7207e324f706bdb
parent929afa7bcf14733884c0116e0c89783eaee42eee
fix out of bound access to mode_strings

mode == ARRAY_SIZE(mode_strings) causes an out of bound access to
the mode_strings array.

Coverity-ID: 1381859

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
Reviewed-by: Julien Grall <julien.grall@arm.com>
xen/arch/arm/traps.c